package com.tanhua.soul.utils;

import com.tanhua.soul.pojo.User;

public class UserThreadLocal {

    private static final ThreadLocal<User> threadLocal = new ThreadLocal<User>();

    // 私有构造
    private UserThreadLocal() {}

    public static void set(User user) {
        threadLocal.set(user);
    }

    public static User get() {
        return threadLocal.get();
    }

}